<div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
        <ul class="am-list admin-sidebar-list">
           {{-- <li><a href="{{route('index.index')}}"><span class="am-icon-home"></span> 首页</a></li>--}}
            {{--<li class="admin-parent">
                <a class="am-cf" data-am-collapse="{target: '#collapse-shop'}"><span class="am-icon-file"></span>
                   权限模块  <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
                <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-shop">
                    <li><a href="{{url('admin/auth/user_list')}}" class="am-cf"><span class="am-icon-apple"></span> 管理员<span
                                    class="am-icon-star am-fr am-margin-right admin-icon-yellow"></span></a></li>
                    <li><a href="{{url('admin/auth/role_list')}}"><span class="am-icon-bars"></span> 角色</a></li>
                    <li><a href="{{url('admin/auth/permission_list')}}"><span class="am-icon-shopping-cart"></span> 权限<span
                                    class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>
                </ul>
            </li>--}}
            <?php $comData_menu = Request::get('comData_menu'); ?>
            <?php $routename = Route::currentRouteName(); ?>
            @foreach($comData_menu as $menu)
                <li class="admin-parent">
                    <a class="am-cf"
                       data-am-collapse="{target: '#collapse-nav{{$menu['id']}}'}"><span class="am-icon-file"></span>
                        {{$menu['label']}}<span class="am-icon-angle-right am-fr am-margin-right"></span></a>
                    <ul data-id="{{$menu['id']}}" class="am-list am-collapse admin-sidebar-sub am-off @if (array_has($comData_menu[0]['active'], $routename) && ($comData_menu[0]['active'][$routename] == $menu['id'])) am-in @endif"
                        id="collapse-nav{{$menu['id']}}">
                        @foreach($menu['children'] as $kk=>$vv)
                            <li class="children" data-pid="{{$menu['id']}}">
                                <a href="{{route($vv['name'])}}" class="am-cf"><span
                                            class="am-icon-apple"></span> {{$vv['label']}}<span
                                            class="am-icon-star am-fr am-margin-right admin-icon-yellow"></span>
                                </a>
                            </li>
                        @endforeach
                    </ul>
                </li>
            @endforeach
            <li><a href="#"><span class="am-icon-sign-out"></span> 注销</a></li>
        </ul>

        {{--<div class="am-panel am-panel-default admin-sidebar-panel">--}}
            {{--<div class="am-panel-bd">--}}
                {{--<p><span class="am-icon-bookmark"></span> 公告</p>--}}
                {{--<p>时光静好，与君语；细水流年，与君同。—— Amaze UI</p>--}}
            {{--</div>--}}
        {{--</div>--}}

        <div class="am-panel am-panel-default admin-sidebar-panel">
            <div class="am-panel-bd">
                <p><span class="am-icon-tag"></span> wiki</p>
                <p>Welcome to 51Finace!</p>
            </div>
        </div>
    </div>
</div>